import Vue from 'vue'
import VueRouter from 'vue-router'

import myLogin from '@/views/myLogin.vue'
import home from '@/views/home.vue'
import news from '@/views/news.vue'

Vue.use(VueRouter)

const routes = [
  {
    path:"/",
    redirect:'/myLogin'
},
{
    path:'/myLogin',
    component:myLogin
},
{
  path:'/home',
  component:home
},
{
  path:'/news',
  component:news
}
]
const router = new VueRouter({
  routes
})

export default router
